package yang.itcode.mapper;

import cn.hutool.json.JSONObject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yang.itcode.model.pojo.User;

import java.util.List;

@Mapper
public interface UserMapper {
    int insert(User user);

    int update(User user);

    int deleteById(Integer id);

    User selectById(Integer id);

    List<User> selectAll();

    List<User> selectByCondition(JSONObject condition);

    User selectByUsernameAndPassword(User user);
}

